package com.mhr.service;

import com.mhr.pojo.Student;

import java.util.List;

/**
 * @Author manster
 * @Date 2021/5/26
 **/
public interface StudentService {

    //新增学生
    int insertStudent(Student student);
    //删除学生
    int deleteStudent(Integer id);
    //修改学生信息
    int updateStudent(Student student);
    //通过id查询学生
    Student getStudentById(Integer id);
    //通过name查询学生
    List<Student> getStudentByName(String name);
    //列出所有学生
    List<Student> listStudent();

}
